import "modern-normalize/modern-normalize.css";
import "./style/index.less";

import App from "./App.vue";
import { createApp } from "vue";
import { createPinia } from "pinia";
import router from "./router/index";
import { i18n } from "@/lang/index";
import { stepCustomDirective } from "./utils/directives";

// 把雪碧图注入DOM
import "virtual:svg-icons-register";

console.log(`%c📦 版本 %c${__BUILD_INFO__.version}`, "color:#0ea5e9;font-weight:bold", "color:#10b981");
console.log(`%c⏱️ 构建时间 %c${__BUILD_INFO__.time}`, "color:#f97316", "color:#65a30d");

// 仅在开发环境启用
if (import.meta.env.DEV) {
  import("./service/mock/index");
}

const app = createApp(App);
stepCustomDirective(app);
app.use(createPinia());
app.use(router);
app.use(i18n);
app.mount("#app");
